Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 1 - Appearance Manager Reference / Appearance Manager Functions
Drawing Appearance-Compliant Menus /


DrawThemeMenuSeparator

NEW WITH THE APPEARANCE MANAGER

Draws an Appearance-compliant menu item separator line.

pascal OSStatus DrawThemeMenuSeparator (const Rect *inItemRect);
inItemRect
On input, a pointer to the rectangle in which the menu item separator should be drawn. The rectangle passed should be the same height as the height returned by the function GetThemeMenuSeparatorHeight.
function result
A result code; see "Result Codes".
DISCUSSION
The DrawThemeMenuSeparator function should be called when you are writing your own menu bar definition function and wish to coordinate a menu item separator line with the current theme.

SPECIAL CONSIDERATIONS
Make sure Appearance Manager 1.0.1 is present before calling the DrawThemeMenuSeparator function. See "Appearance Manager Gestalt Selector Constants" for details on how to determine if the Appearance Manager is present and what its version is, if so.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998